package com.hxw.dubbo.demo.impl;

import com.hxw.dubbo.demo.HelloApi;
import org.springframework.stereotype.Component;
import com.alibaba.dubbo.config.annotation.Service;

@Service(interfaceClass = HelloApi.class,version = "1.0.0")
@Component
public class HelloApiImpl implements HelloApi {
    @Override
    public String sayHello(String name) {
        return "hello "+name;
    }
}
